package com.xl.factoryMethodPattern.practice;

public class Client {
    public static void main(String[] args) {
        ConnectorFactory factory = new HttpConnectorFactory();
        factory.connect("发送消息。。。");

        ConnectorFactory factory1 = new DatabaseConnectorFactory();
        Connector connector = factory1.createConnector();
        connector.connect("发送消息。。。");
    }
}
